package data

import (
	"github.com/google/wire"
)

var ProviderData = wire.NewSet(
	wire.NewSet(
		NewMysql,
		NewRedis,
	),
	NewData,
	wire.NewSet(
		NewUserRepo,
	),
)

// Data .
type Data struct {
	mysql *Mysql
	redis *Redis
}

func NewData(mysql *Mysql, redis *Redis) *Data {
	return &Data{
		mysql: mysql,
		redis: redis,
	}
}
